<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected $fillable=['name','description'];

    public function discussions()
    {
        return $this->belongsToMany('App\Discussion','discussion_category','category_id','discussion_id');
    }
}
